package cn.ticket.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.dao.CarpoolingMapper;
import cn.ticket.model.Carpooling;
import cn.ticket.service.CarPoolingService;
@Service
public class CarPoolingServiceImpl implements CarPoolingService {

	@Autowired
	private CarpoolingMapper carPoolingMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return carPoolingMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Carpooling record) {
		// TODO Auto-generated method stub
		return carPoolingMapper.insert(record);
	}

	@Override
	public int insertSelective(Carpooling record) {
		// TODO Auto-generated method stub
		return carPoolingMapper.insertSelective(record);
	}

	@Override
	public Carpooling selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return carPoolingMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Carpooling record) {
		// TODO Auto-generated method stub
		return carPoolingMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Carpooling record) {
		// TODO Auto-generated method stub
		return carPoolingMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Map<String, Object>> getValidateCarPooling() {
		// TODO Auto-generated method stub
		return carPoolingMapper.getValidateCarPooling();
	}

}
